<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<fieldset class="layui-elem-field layui-field-title site-title">
		<legend>
			<a name="fixbar" style="font-size: 16px; color: #ce2424;">我的课表</a>
		</legend>
	</fieldset>
		<table class="layui-table" lay-size="sm">
			<thead>
				<tr>
					<th>日期</th>
					<th colspan="2">时间</th>
					<th>课程</th>
					<th>主讲人</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${model}" var="c">
					<c:if test="${c.background }">
						<tr style="background: #c9e3d6;">
							<c:if test="${c.datatr!=0 }">
								<td rowspan="${c.datatr }">${c.data }</td>
							</c:if>
							<c:if test="${c.daytr!=0 }">
								<td rowspan="${c.daytr }">${c.day }</td>
							</c:if>
							<c:if test="${c.timetr!=0 }">
								<td rowspan="${c.timetr }">${c.time }</td>
							</c:if>
							<td>${c.kc }</td>
							<td>${c.teachername }</td>
						</tr>
					</c:if>
					<c:if test="${!c.background }">
						<tr>
							<c:if test="${c.datatr!=0 }">
								<td rowspan="${c.datatr }">${c.data }</td>
							</c:if>
							<c:if test="${c.daytr!=0 }">
								<td rowspan="${c.daytr }">${c.day }</td>
							</c:if>
							<c:if test="${c.timetr!=0 }">
								<td rowspan="${c.timetr }">${c.time }</td>
							</c:if>
							<td>${c.kc }</td>
							<td>${c.teachername }</td>
						</tr>
					</c:if>
					
						
				</c:forEach>
			</tbody>
		</table>
</body>
</html>